package com.rdk.service;

import javax.servlet.http.HttpServletRequest;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import com.rdk.entity.TShare;
import com.rdk.utils.BusinessException;


public interface TShareService extends BaseService<TShare>{
	
	JSONArray findFeeds(String loginUserId,String timestamp,int offset);
	
	public JSONObject findFeed(String shareId, String loginUserId)throws BusinessException ;
	
	public TShare findShareById(String shareId);
	
	public JSONObject getShareFeed(TShare share);

	public JSONArray findUserShare(String userId, String loginUserId, String timestamp, int offset);
	
	public JSONArray findUserShareByName(String name, String loginUserId, String timestamp, int offset)
            throws BusinessException;
	
	public void addShare(HttpServletRequest request,String userId) throws BusinessException;
	
	public void deleteShare(String shareId, String loginUserId) throws BusinessException;
	
	public void forward(String refer, HttpServletRequest request,String userId) throws BusinessException;
	
	public TShare findShareDetail(TShare share);
}
 